home *** CD-ROM | disk | FTP | other *** search
- Path: grimsel.zurich.ibm.com!usenet
- From: wgk@zurich.ibm.com (Keith Whittingham)
- Newsgroups: comp.lang.c++
- Subject: Re: Newbie: Character values?
- Date: 7 Apr 1996 12:34:35 GMT
- Organization: IBM Research, ZRH
- Message-ID: <4k8cor$oca@grimsel.zurich.ibm.com>
- References: <4k7ute$oud@freenet-news.carleton.ca>
- Reply-To: wgk@zurich.ibm.com
- NNTP-Posting-Host: pine.zurich.ibm.com
- X-Newsreader: IBM NewsReader/2 v1.00
-
- In <4k7ute$oud@freenet-news.carleton.ca>, am573@FreeNet.Carleton.CA (Jason Olenick) writes:
- >
- >I am trying to see if the user has typed the Insert or Delete key in a
- >program I wrote...but the unsinged char is giving the values of 0 then 82
- >for insert (same as R) and delete is 0 then 83 (same as S). So what I'm
- >doing then is seeing if the chars value is 0 if it was then see if the
- >next chars value is 82 or 83. Is there an easier way around this? Not
- >that this is hard, it just doesn't seem right.
- >
-
- You're doing the right (simplest) thing.
-
- Keith
-
-
-